//
//  HeaderFooterView.m
//  UI11_TableView2
//
//  Created by dllo on 15/8/3.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "HeaderFooterView.h"

@interface HeaderFooterView ()
@property (nonatomic, assign) CGFloat offWidth;
@property (nonatomic, assign) CGFloat offHeight;

@end

@implementation HeaderFooterView

- (void)dealloc
{
    [_title release];
    [super dealloc];
}



- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
    
        self.offWidth = [[UIScreen mainScreen]bounds].size.width / 375;
        self.offHeight = [[UIScreen mainScreen]bounds].size.height / 667;
        self.title = [[UILabel alloc]initWithFrame:CGRectMake(10*_offWidth, 0, 300 *_offWidth, 40 *_offHeight)];
        
        [self addSubview:self.title];
        self.title.textAlignment = 1;
        [self.title release];
        
        self.button = [UIButton buttonWithType:UIButtonTypeSystem];
        self.button.frame = CGRectMake(300*_offWidth, 5 *_offHeight, 60*_offWidth, 30 *_offHeight);
        [self.button setBackgroundImage:[UIImage imageNamed:@"k13.jpg"] forState:UIControlStateNormal];
        [self addSubview:self.button];
        
        
        
        
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
